package cn.kgc.layui.dao;

import cn.kgc.layui.entity.Authority;
import cn.kgc.layui.entity.Student;
import cn.kgc.layui.vo.ZtreeVO;

import java.sql.SQLException;
import java.util.List;

public interface AuthorityDao {
    /**
     * 查询所有菜单
     * @return
     */
    List<Authority> list(String authorityName,String menuUrl,String authority);
    List<ZtreeVO> ztreeData();
    int save(Authority authority) throws SQLException;
    int update(Authority authority) throws SQLException;
    int delete(String id) throws SQLException;
    List<Integer> getAuthIdsByRoleId(String roleId);
}
